//
//  ViewController.h
//  HelloIOSECGSDK
//
//  Created by FEI DENG on 7/1/14.
//  Copyright (c) 2014 FEI DENG. All rights reserved.
//

#import <UIKit/UIKit.h>

#import "TGLibECG.h"
#import "TGLibECGDelegate.h"
#import "TGLibECGDictionary.h"
#import "LineGraphView.h"

@interface ViewController : UIViewController<TGLibECGDelegate>{
    TGLibECG * tglibECG;
    
    NSArray *rawArray;
    int rawIndex;
    NSTimer* sendDataTimer;
    
    int  heartRate;
    int  robustHeartRate;
    int  HRV;
    int  r2rInterval;
    int  heartBeatCount;
    int  rpeakDetected;
    int  mood;
    int  heartAge;
    int  stress;
    int  rawNum;
    int  signalQuality;
    double  overallSignalQuality;
}

@property (weak, nonatomic) IBOutlet LineGraphView *ecgLineView;

@property (weak, nonatomic) IBOutlet UILabel *sdkVersionLabel;
@property (weak, nonatomic) IBOutlet UILabel *heartRateLabel;
@property (weak, nonatomic) IBOutlet UILabel *robustHeartRateLabel;
@property (weak, nonatomic) IBOutlet UILabel *r2rIntervalLabel;
@property (weak, nonatomic) IBOutlet UILabel *hrvLabel;
@property (weak, nonatomic) IBOutlet UILabel *heartBeatCountLabel;
@property (weak, nonatomic) IBOutlet UILabel *rpeakDetectedLabel;
@property (weak, nonatomic) IBOutlet UILabel *moodLabel;
@property (weak, nonatomic) IBOutlet UILabel *heartAgeLabel;
@property (weak, nonatomic) IBOutlet UILabel *stressLabel;
@property (weak, nonatomic) IBOutlet UILabel *signalQualityLabel;
@property (weak, nonatomic) IBOutlet UILabel *overallSignalQualityLabel;

@property (weak, nonatomic) IBOutlet UIButton *processDemo;

- (IBAction)onProcessRawDataFileClicked:(id)sender;

@end
